<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>注册</title>
    <style>
        body { font-family: '微软雅黑', Arial, sans-serif; background: #f5f6fa; }
        .register-container {
            width: 350px;
            margin: 80px auto;
            padding: 30px 30px 20px 30px;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        .register-container h2 { text-align: center; margin-bottom: 25px; }
        .register-container label { display: block; margin-bottom: 8px; }
        .register-container input[type=text], .register-container input[type=password] {
            width: 100%; padding: 8px; margin-bottom: 18px; border: 1px solid #ccc; border-radius: 4px;
        }
        .register-container input[type=submit] {
            width: 100%; background: #4a90e2; color: #fff; border: none; padding: 10px; border-radius: 4px; font-size: 16px;
            cursor: pointer;
        }
        .register-container a { display: block; text-align: right; margin-top: 10px; color: #4a90e2; text-decoration: none; }
        .register-container a:hover { text-decoration: underline; }
    </style>
</head>
<body>
<div class="register-container">
    <h2>用户注册</h2>
    <form action="/register" method="post">
        <label for="username">用户名：</label>
        <input type="text" id="username" name="username" required />
        <label for="password">密码：</label>
        <input type="password" id="password" name="password" required />
        <input type="submit" value="注册" />
        <a href="/login">返回登录</a>
    </form>
</div>
</body>
</html> 